Skip to content

feat: add ServiceUnavailableError and TooManyRequestsError handling#106

Merged
gavinsharp merged 1 commit intomainfrom
fern-bot/2026-03-09T14-02Z
Mar 9, 2026
Merged

feat: add ServiceUnavailableError and TooManyRequestsError handling#106
gavinsharp merged 1 commit intomainfrom
fern-bot/2026-03-09T14-02Z

Conversation

@fern-api
Copy link
Contributor

@fern-api fern-api bot commented Mar 9, 2026

Add comprehensive error handling for HTTP 429 (Too Many Requests) and HTTP 503 (Service Unavailable) status codes across all FHIR client methods. This improves the client's robustness by properly handling rate limiting and temporary service unavailability scenarios.

Key changes:

  • Add ServiceUnavailableError class for HTTP 503 responses
  • Add TooManyRequestsError class for HTTP 429 responses with structured ErrorResponse body
  • Update all sync and async client methods to handle these new error types
  • Add proper imports and exports in module initialization files

🌿 Generated with Fern

Add comprehensive error handling for HTTP 429 (Too Many Requests) and HTTP 503 (Service Unavailable) status codes across all FHIR client methods. This improves the client's robustness by properly handling rate limiting and temporary service unavailability scenarios.

Key changes:
- Add ServiceUnavailableError class for HTTP 503 responses
- Add TooManyRequestsError class for HTTP 429 responses with structured ErrorResponse body
- Update all sync and async client methods to handle these new error types
- Add proper imports and exports in module initialization files

🌿 Generated with Fern
@gavinsharp gavinsharp merged commit 647daa8 into main Mar 9, 2026
4 checks passed
@gavinsharp gavinsharp deleted the fern-bot/2026-03-09T14-02Z branch March 9, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant